summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNarr the Reg <juangerman-13@hotmail.com>2024-02-23 19:25:21 +0100
committerNarr the Reg <juangerman-13@hotmail.com>2024-02-24 01:58:19 +0100
commit0fb26acccc69a339055d4b5f11d980c8b3686193 (patch)
tree44d034e3b8c92284695b49927edbdbd62b208012
parentMerge pull request #13141 from liamwhite/swap (diff)
downloadyuzu-0fb26acccc69a339055d4b5f11d980c8b3686193.tar
yuzu-0fb26acccc69a339055d4b5f11d980c8b3686193.tar.gz
yuzu-0fb26acccc69a339055d4b5f11d980c8b3686193.tar.bz2
yuzu-0fb26acccc69a339055d4b5f11d980c8b3686193.tar.lz
yuzu-0fb26acccc69a339055d4b5f11d980c8b3686193.tar.xz
yuzu-0fb26acccc69a339055d4b5f11d980c8b3686193.tar.zst
yuzu-0fb26acccc69a339055d4b5f11d980c8b3686193.zip
-rw-r--r--src/core/hle/service/set/settings_types.h3
-rw-r--r--src/core/hle/service/set/system_settings_server.cpp11
2 files changed, 12 insertions, 2 deletions
diff --git a/src/core/hle/service/set/settings_types.h b/src/core/hle/service/set/settings_types.h
index 29664e88c..4fd34f46b 100644
--- a/src/core/hle/service/set/settings_types.h
+++ b/src/core/hle/service/set/settings_types.h
@@ -405,8 +405,7 @@ struct EulaVersion {
SystemRegionCode region_code;
EulaVersionClockType clock_type;
INSERT_PADDING_BYTES(0x4);
- s64 posix_time;
- Service::PSC::Time::SteadyClockTimePoint timestamp;
+ Service::PSC::Time::SystemClockContext system_clock_context;
};
static_assert(sizeof(EulaVersion) == 0x30, "EulaVersion is incorrect size");
diff --git a/src/core/hle/service/set/system_settings_server.cpp b/src/core/hle/service/set/system_settings_server.cpp
index 93925f783..45def67db 100644
--- a/src/core/hle/service/set/system_settings_server.cpp
+++ b/src/core/hle/service/set/system_settings_server.cpp
@@ -306,6 +306,17 @@ ISystemSettingsServer::ISystemSettingsServer(Core::System& system_)
RegisterHandlers(functions);
SetupSettings();
+
+ // TODO: Remove this when starter applet is fully functional
+ EulaVersion eula_version{
+ .version = 0x10000,
+ .region_code = m_system_settings.region_code,
+ .clock_type = EulaVersionClockType::SteadyClock,
+ .system_clock_context = m_system_settings.user_system_clock_context,
+ };
+ m_system_settings.eula_versions[0] = eula_version;
+ m_system_settings.eula_version_count = 1;
+
m_save_thread =
std::jthread([this](std::stop_token stop_token) { StoreSettingsThreadFunc(stop_token); });
}